
export type MilliSeconds = number

export interface DBConfig {
  dbName:string
  dbVersion:number
  itemDuration:MilliSeconds
  tables?: {
    [key: string]: TableConfig
  }
}

export interface TableConfig {
  tableName?: string
  primaryKey?:string
  indexList: IndexOfTable[]
  itemDuration: MilliSeconds
}
export interface ItemConfig {
  tableName: string
  item: any
  itemDuration?: MilliSeconds
}

export interface IndexOfTable {
  indexName: string
  unique?: boolean
}
